<template>
	<view>
		<navbar :title="i18n.ggxq"></navbar>
		<view class="pl15 pr15 pt20">
			<view class="title f17 white">{{ noticeTitle }}</view>
			<view class="f12 textcolor time mgt10">{{ createTime }}</view>
			<view  class="f14 content mt20 white title">
				<rich-text :nodes="noticeContent">			</rich-text>
			</view>
		</view>

	</view>
</template>

<script>
export default {
	data() {
		return {
			nikeName: '',
			noticeTitle: '',
			createTime: '',
			noticeContent: '',
			noticeId:""
		};
	},
	computed:{
		i18n() {
			return this.$t('home');
		}
	},
	onLoad(options) {
		this.noticeId=options.id
		
	},
	onShow() {
		let params = {
			noticeId:this.noticeId
		};
		this.$http.post('notice.getNoticInfo', params).then(res => {
			// console.log(res);
			this.noticeTitle = res.data.noticeTitle;
			this.noticeContent = res.data.noticeContent;
			this.createTime = res.data.createTime;			
		});
	},
	methods:{
		gotoNotice() {
			uni.reLaunch({
				url: './notice'
			});
		}
	},
}
</script>

<style lang="less">

.register {
	margin-top: 60rpx;
	.back {
		justify-content: center;
		align-items: center;
		display: flex;
		font-size: 34rpx;
		margin-left: 30rpx;
		position: relative;
		.leftarrow {
			position: absolute;
			left: 0;
			top: 0;
			width: 32rpx;
			height: 32rpx;
		}
	}
	.chrecord {
		position: absolute;
		top: 0;
		right: 0;
		margin-right: 30rpx;
		color:#586471;
	}
}
.textcolor{
	color:#586471;
}
</style>
